From 6fd36457130b89d030f684785987c6e5e0531a33 Mon Sep 17 00:00:00 2001 From: Carlos Garnacho Date: Wed, 26 Jan 2022 16:02:00 +0100 Subject: [PATCH] gtk/gesture: Fix point info lookup on touchpad events Since the addition of GdkEventSequence in touchpad events, these are now stored in the gesture using that sequence. This bit of touchpad gesture handling was however missing to be updated, still looking up the special NULL sequence. Use the last sequence here, which will be the one coming from touchpad gesture events. --- gtk/gtkgesture.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gtk/gtkgesture.c b/gtk/gtkgesture.c index 3897ba0549..33b2fb9326 100644 --- a/gtk/gtkgesture.c +++ b/gtk/gtkgesture.c @@ -242,7 +242,7 @@ _gtk_gesture_get_n_touchpad_points (GtkGesture *gesture, if (!priv->touchpad) return 0; - data = g_hash_table_lookup (priv->points, NULL); + data = g_hash_table_lookup (priv->points, priv->last_sequence); if (!data) return 0; -- 2.30.2